package cn.net.gexing.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.multiaction.MultiActionController;

import cn.net.gexing.model.Article;
import cn.net.gexing.service.PersonBiz;


public class PersonControl extends MultiActionController {

	private PersonBiz personBiz;
	
	
	public void setPersonBiz(PersonBiz personBiz) {
		this.personBiz = personBiz;
	}


	public ModelAndView getPerson(HttpServletRequest request,HttpServletResponse response){
		String id=request.getParameter("id");
		Article person=personBiz.checkById(Integer.parseInt("1100"));
		System.out.println(person.getId()+" "+person.getTitle());
		return new ModelAndView("show","person",person);
	}
	
	public ModelAndView addPerson(HttpServletRequest request,HttpServletResponse response){
		
		return new ModelAndView("addSucc","flag","");
	}
	
}
  